public class HelloWorld {
    public static void main( String args []) {
        Asterisk asterisk = new Asterisk();
        String greeting = asterisk.greeting;
        int len = asterisk.len;
        asterisk.print(len*3, '\n');
        asterisk.print(len-1, ' ');
        System.out.print(greeting + ' ');
        asterisk.print(len, '\n');
        asterisk.print(len*3, '\n');
    }
}

class Asterisk {
    String greeting = "Hello, world";
    int len = greeting.length();
    void print(int num, char markup) {
        int i = 1;
        int n = num;
        for (i=1;i<n;i++) {
            System.out.print("*");
        }
        System.out.print(markup);
    }

}
